﻿Imports DTO
Imports DAO

Public Class ChuyenBay

    Public Function lay_dataset_chuyen_bay() As DataSet
        Dim dao_chuyenbay As New DAO.ChuyenBay
        Return dao_chuyenbay.lay_dataset_chuyen_bay
    End Function

    Public Function lay_dataset_chuyen_bay(ByVal machuyenbay As String, ByVal sanbaydi As String, ByVal sanbayden As String, ByVal ngaybay As String) As DataSet
        Dim dao_chuyenbay As New DAO.ChuyenBay
        Return dao_chuyenbay.lay_dataset_chuyen_bay(machuyenbay, sanbaydi, sanbayden, ngaybay)
    End Function

    Public Function LuuChuyenBay(ByVal dto_chuyenBay As DTO.ChuyenBay) As Integer
        Dim dao_chuyenbay As New DAO.ChuyenBay
        If IsNothing(dto_chuyenBay.id) Then
            Return dao_chuyenbay.Insert(dto_chuyenBay)
        Else

        End If
    End Function

End Class
